import com.hanxu.dao.TeacherMapper;
import com.hanxu.pojo.Teacher;
import com.hanxu.utlis.MybatisUtils;
import org.apache.ibatis.session.SqlSession;
import org.junit.Test;

public class Mytest {

    @Test
    public static void main(String[] args) {
        SqlSession sqlsession = MybatisUtils.getSqlsession();

        TeacherMapper mapper = sqlsession.getMapper(TeacherMapper.class);
        Teacher teacher = mapper.getTeacher(1);
        System.out.println(teacher);

        sqlsession.close();
    }
}
